package com.hrpmar.mapper;


import com.hrpmar.pojo.MessageSender;

import com.hrpmar.controller.dto.MessageSenderDto;
import com.hrpmar.pojo.MessageSender;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by c on 2017-12-04.
 */
public interface MessageSenderMapper {



    /**
     * 添加站内信息（发信人）
     * @param messageSender
     * @return
     */
    public Integer addSenderInfo(MessageSender messageSender);


    /**
     * 分页查询站内信
     * @param offset
     * @param limit
     * @param condition
     * @return
     */
    public List<MessageSender> search(@Param("offset") Integer offset, @Param("limit") Integer limit, @Param("condition") MessageSenderDto condition);

    /**
     * 查询总条数
     * @return
     */
    public Integer getTotal(@Param("condition") MessageSenderDto condition);

}
